#ifndef MODMANA_H_
#define MODMANA_H_

#include "module.h"

#define PART_NAME_MAX 14

#define MOD_MAX         8
typedef struct {
        char name[PART_NAME_MAX];
        uint32_t offset;
        uint32_t part_index;
        uint32_t flags;
        uint32_t size;
}mod_entry_t;

typedef struct {
        uint32_t mod_nr;
        char auto_run[PART_NAME_MAX];
        mod_entry_t mods[MOD_MAX];
}mod_mana_t;

void add_sys_mods(uint32_t flags);
void get_sys_mods(mod_mana_t * modmana, uint32_t app_only);
void delete_sys_mods(char * name);
int sys_update_mod(mod_update_t *update, uint8_t nr);

#endif /* MODMANA_H_ */
